<?php

namespace App\Annotation;

use Hyperf\Di\Annotation\AbstractAnnotation;

/**
 * Class Foo
 * @package App\Annotation
 * @Annotation
 * @Target({"CLASS", "METHOD"})
 */
class Foo extends AbstractAnnotation
{
    /**
     * @var string
     */
    public $bar;

    /**
     * @var string
     */
    public $baz;

    public function __construct($value = null)
    {
        parent::__construct($value);
        $this->bindMainProperty('bar', $value);
    }
}